<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>	
<html:html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<link rel="stylesheet" href="style.css" type="text/css"
	media="screen, projection" />
	
<!--[if lte IE 6]><link rel="stylesheet" href="style_ie.css" type="text/css" media="screen, projection" /><![endif]-->

<title><bean:message key="login.titulo" /></title>
<link type="text/css" href="<%=request.getContextPath()%>/css/custom-theme/jquery-ui-1.8.18.custom.css" rel="stylesheet">
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery-ui-1.8.18.custom.min.js"></script>
<script>
				$(function() {
					$( "input:submit, a, #reset, button", ".buton" ).button();
						$("#cadastro").click(function(){
							$(".buton").load("adicionarUsuario.jsp",function(){
								$( "input:submit, a, #reset, button", ".buton" ).button();
								$("#voltar").click(function(){window.location.href = '/AgendaWEB/';});
								});
							});
						
						
						
						});
						
				</script>

<html:base />
</head>

<body bgcolor="white">

	<div id="wrapper">
		<div id="header">
		</div>
		<!-- #header-->

		<div id="middle">

			<div id="container">
				<div id="content">
				
					<c:if test="${criado}">
				 	<b>Usuario criado</b>
					</c:if>
						
					<font color="red"> <html:errors />
					</font>
					<font color="green">
					<html:messages id="msg" />
					</font>
					
					
					<div class="buton">
					<html:form action="Logar.do">

						<bean:message key="login.usuario" />
						<html:text property="nome" />
						<br>

						<bean:message key="login.senha" />
						<html:password property="senha" />
						<br>

						<html:submit>
							<bean:message key="login.botao.enviar" />
						</html:submit>

						<html:reset styleId="reset">
							<bean:message key="login.botao.limpar" />
						</html:reset>

					</html:form>
				<p><button id="cadastro">Cadastro</button></p>
				</div><!-- button -->
				</div>
				<!-- #content-->
				
			</div>
			<!-- #container-->

			<div class="sidebar" id="sideLeft"></div>
			<!-- .sidebar#sideLeft -->

			<div class="sidebar" id="sideRight"></div>
			<!-- .sidebar#sideRight -->

		</div>
		<!-- #middle-->

	</div>
	<!-- #wrapper -->
	<div id="footer">
		
	</div>
</body>
</html:html>
